for i in `find . -name "*.log"`; do cat /dev/null &gt;$i; done

或者

for i in `find . -name "*.log"`; do &gt;$i; done
